<header class="weui-navbar">
    <span class="nav-left ">
        <a href="/"><img class="fanhui" src="/images/fanhui.png" /></a>
    </span>
    <span class="nav-center">[tblTitle]</span>
    <span class="nav-right">
        <a href="javascript:;"  style="z-index: 9999" class="open-popup" data-target="#layer-query">筛选</a>
    </span>
</header>
<div class="head-line" ></div>
<!--<div class="weui-cells__title">单选列表项</div>-->

<div class="weui-cells weui-body" id="app">
    <div class="weui-cell">
        <div class="weui-cell__bd">

         <div class="weui-cell tbl-row" v-cloak :data-id="info.id"  v-for="(info, index) in listdata">
            <div class="weui-cell__hd"></div>
            <div class="weui-cell__bd">
  [loop start]
                <div class="row">
                    <label >[fldTitle]:</label>[[info.[fldName]]]
                </div>
  [loop end]
            </div>
        </div>


        </div>
    </div>
    <div class="weui-loadmore none" id="loading">
        <i class="weui-loading"></i>
        <span class="weui-loadmore__tips">正在加载</span>
    </div>
    <div class="weui-loadmore weui-loadmore_line none" id="loadingok">
        <span class="weui-loadmore__tips">暂无数据</span>
    </div>
</div>
<div class="btn-bottom">
    <a href="javascript:" onclick="popupAdd();" class="weui-btn weui-btn_primary " >新增</a>
</div>
{{ partial("layouts/footer") }}
<!--查询表单-->
<div id="layer-query" class='weui-popup__container popup-bottom'>
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="toolbar">
            <div class="toolbar-inner">
                <a href="javascript:;" class="picker-button close-popup">关闭</a>
                <h1 class="title">查询条件</h1>
            </div>
        </div>
        <div class="modal-content">
            <div class="weui-cells">
            <form id="formQuery" action="" method="post">
  [loop start]
	    <div class="weui-cell">
		<div class="weui-cell__hd"><label class="weui-label">[fldTitle]</label></div>
		<div class="weui-cell__bd">
		    <input type="text" id="con-[fldName]" name="[fldName]" class="weui-input" placeholder="请输入[fldTitle]" value="">
		</div>
	    </div>
  [loop end]

                <input type="hidden" id="pageindex" name="pageindex" value="1" />
                <input type="hidden" id="pagesize" name="pagesize"  value="10" />
                <a href="javascript:;" onClick="formQuerySubmit();" class="weui-btn weui-btn_primary  close-popup">查询</a>
            </form>
            </div>
        </div>
    </div>
</div>
<!--添加表单-->
<div id="layer-add" class='weui-popup__container '>
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="toolbar">
            <div class="toolbar-inner">
                <a href="javascript:;" class="picker-button close-popup">关闭</a>
                <h1 class="title">编辑</h1>
            </div>
        </div>
        <div class="modal-content">
            <div class="weui-cells">
                <form id="formAdd" action="" method="post">
  [loop start]
		    <div class="weui-cell">
			<div class="weui-cell__hd"><label class="weui-label">[fldTitle]</label></div>
			<div class="weui-cell__bd">
			    <input type="text" id="txt-[fldName]" name="[fldName]" class="weui-input" placeholder="请输入[fldTitle]" value="">
			</div>
		    </div>
  [loop end]

                    <input type="hidden" name="id" value="0" >

                    <a href="javascript:;" onClick="formAddSubmit();" class="weui-btn weui-btn_primary">提交</a>
                </form>
            </div>
        </div>
    </div>
</div>
<!--查看-->
<div id="layer-view" class='weui-popup__container '>
    <div class="weui-popup__overlay"></div>
    <div class="weui-popup__modal">
        <div class="toolbar">
            <div class="toolbar-inner">
                <a href="javascript:;" class="picker-button close-popup">关闭</a>
                <h1 class="title">编辑</h1>
            </div>
        </div>
        <div class="modal-content">
            <div class="weui-cells">

  [loop start]
		    <div class="weui-cell">
			<div class="weui-cell__hd"><label class="weui-label">[fldTitle]</label></div>
			<div class="weui-cell__bd">
			    <span id="spn-[fldName]" name="[fldName]" class="fld-value" ></span> 
			</div>
		    </div>
  [loop end]
            </div>
        </div>
    </div>
</div>

<script src="/viewjs/[tblName]/index.js"></script>





